package com.security.door.dao.mapper;

import com.security.door.core.tk.mapper.MyBaseMapper;
import com.security.door.model.domain.devDeviceinfo;
import com.security.door.model.dto.devDeviceinfoDto;
import com.security.door.model.vo.deviceInfoVo;
import com.security.door.model.vo.treeViewVo;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface devDeviceinfoMapper extends MyBaseMapper<devDeviceinfo> {

    List<deviceInfoVo> queryListWithPage(devDeviceinfoDto entity);

    List<treeViewVo> selectAllTree();

    Integer hasExists(String deviceCode);

    Integer deleteByCode(String deviceCode);

    devDeviceinfo selectByCode(String deviceCode);

    List<devDeviceinfo> selectTreeByAreaCode(String areaCode);
}
